package com.bootcamp.java;

import javax.lang.model.element.VariableElement;
import java.util.Scanner;
import java.util.concurrent.ForkJoinPool;

/**
 * @program: code
 * @description: print the nth multiplication table according to keyboard
 * @author: Keyu li
 * @create: 2021-08-24 20:08
 **/

public class PrintMultiplicationTable {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        printMulTable(n);
    }

    private static void printMulTable(int n) {
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(i + "x" + j + "=" + (i * j) + " ");
            }
            System.out.println();
        }
    }
}
